package github.sf.fw.tools.tree.impl;


import github.sf.fw.tools.tree.BuildType;
import github.sf.fw.tools.tree.TreeBuilder;
import github.sf.fw.tools.tree.TreeBuilderProvider;

public class DefaultTreeBuilderProvider implements TreeBuilderProvider {
    @Override
    public TreeBuilder getTreeBuilder(BuildType type) {
        switch (type) {
            case DEFAULT:
                return new DefaultTreeBuilder();
            case RECURSION:
                return new RecursionTreeBuilder();
        }
        return null;
    }
}
